package com.spring.student.register;


public class User {
    private int id; //后面与数据库的id对应
    private String number;
    private String password;
    private String identity;


    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    @Override
    public String toString() {
        return "用户注册成功"+"\n"+
                "账号：" + number + '\n' +
                "密码：" + password + '\n' +
                "身份：" + identity + '\n' ;
    }

}